package com.ambimmort.shj.action.user;

/**
 * Created by Administrator on 2015/7/30.
 */

import com.ambimmort.shj.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller("/action/user/create.do")
public class Create {
    @Autowired
    private UserService userService;

    /**
     *
     * @param request
     * @param json
     * @return
     */

    @RequestMapping("/action/user/create.do")
    @ResponseBody
    public String action_UserCreate( HttpServletRequest request,@RequestParam("json") String json)  {
        System.out.println("action_PolicybankCreate-messageType:"+json);

            return   userService.createDomain(json);
    }
}
